#include <stdio.h>
#include <string.h>

int main (void) {
    char string[16384];
    int i = 0, itmp = 0;
    /*input*/
    gets(string);
    /*edit*/
    for ( i = 0; i < strlen(string); i++ ) {
        itmp = i-1;
        if ( string[i] == ' ' ) {
            for (; i < strlen(string); i++) {
                string[i] = string[i+1];
            }
        i = itmp;
        }
    }
    /*output*/
    puts(string);
    return 0;
}